<?php 

/**
 * FreeY_Paginator_Helper
 *
 * @auther		FreeYadmin <FreeYadmin@gmail.com>
 * @update		none
 * @package		FreeY
 */	
class FreeY_Paginator_Helper
{

	/**
	* method_note
	*	
	* @param	$var		type		note
	* @return	$ret		type		note
	*/
	public function select($db, $sql, $page = 1, $size = 10, $style = 'styleDefault')
	{
		$count = $db->count($sql);
		$paginator = new FreeY_Paginator($count, $page, $size);
		$this->$style();
	}

}//FreeY end**********
//file end--------------------------------------------------------->